package com.iot.gateway.annotation;

import com.iot.gateway.aspectj.converter.DefaultConverter;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface FieldMapping {

    String source() default "";

    String target() default "";

    Class<? extends FieldConverter> converter() default DefaultConverter.class;

}
